function! s:on_c() abort
    setlocal cms=//\ %s
endfunction

function! s:on_cpp() abort
    call s:on_c()
endfunction

function! bootstrap#c#setup() abort
    autocmd! BufRead,BufNewFile *.c set filetype=c
    autocmd! BufRead,BufNewFile *.hpp,*.h,*.cpp,*.cxx set filetype=cpp
    autocmd! FileType c call <SID>on_c()
    autocmd! FileType cpp call <SID>on_cpp()
endfunction



